package com.example.text.entity;

import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;


@Data
@TableName(value = "user")
public class User {
    private static final long serialVersionUID = 1L;

    @TableId(value="id",type = IdType.AUTO)
    int id;

    private String username;
    private String password;
    private  String name;
    private  String salt;
    private  String email;
    private  String  mobile;
    private  String cover;

    private boolean  enabled;
    private Date create_time;
    private  int create_user_id;

    private  int  status;

    @TableField(exist = false)
    private List<AdminRole> roles;


}
